<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>主要的</title>
</head>

<body>
<?php
require 'include.php';
require 'config.php';
#提交的源
$dbRss = wt_SQL::connect($host, $user, $passw, $db);//转接数据库
$rss = wt_post::getRss();//从数据库获得源
$post = wt_xml::readRSS($rss[0]);//获得全部文章
/*$newpost = wt_post::getUnreadArticles($post);//获得未读文章
print_r($newpost);*/
wt_post::addPost($post);
?>
</body>
</html>